import cv2
import threading
import json;



def successJson(data=[], msg=""):
    result_data = {'code': 200, 'msg': msg, 'data': data};
    return json.dumps(result_data)



def get_data():
    arr2 = [[119.26140091,62.49038889,143.31193215,96.03587501,0.99892128]];
    arr1 = [[119.26140091,62.49038889,143.31193215,96.03587501,0.99892128]];
    return 0,arr1


data = {'img_path': '', 'nrof_faces': 1, 'bounding_boxes': [[119, 62, 143, 96]]}

print(json.dumps(data));

#
# result_data = {"nrof_faces": 0, "bounding_boxes": boxes, "img_path": ""};
#
# result_data['nrof_faces'] = boxes;
# result_data['bounding_boxes'] = boxes;
#
# boxes = successJson(result_data);
# print(boxes);
#
# #
# img_src = "http://oper-img-7.oss-cn-beijing.aliyuncs.com/1539832752684347/3708.jpg"
# cap = cv2.VideoCapture(img_src)
# if( cap.isOpened() ) :
#     ret,img = cap.read()
#     cv2.namedWindow("image",0)
#
#     cv2.imshow("image",img)
#     cv2.waitKey(3000)
